package com.define.ssh.thread;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.SingleThreadModel;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/****
 * 此servlet处理需要时时处理的功能（比如：短信发送）
 */
public class InitServlet extends HttpServlet implements SingleThreadModel {
	private static final long serialVersionUID = 1L;
	private static final Log InitServletLOG = LogFactory
			.getLog(InitServlet.class);
	private static Thread threadOut = null;
	private static Thread sendDxThread = null;

	@Override
	public void init() throws ServletException {
		/*
		 * if (threadOut == null){ //发送短信渠道 sendDxThread=new Thread(new
		 * DxThread()); sendDxThread.setDaemon(true); sendDxThread.start();
		 * InitServletLOG.info(new Date() + "处理任务引擎初始化成功........"); }
		 */
	}

	/**
	 * @see HttpServlet#HttpServlet()
	 */
	public InitServlet() {
		super();
	}

	@Override
	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

	@Override
	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
